package com.dci.dao.pms.project;

import com.alibaba.fastjson.JSONObject;
import com.dci.model.project.ProjectSchedule;

import java.util.List;

public interface ProjectScheduleMapper {
    int deleteByPrimaryKey(String id);

    int insert(ProjectSchedule record);

    int insertSelective(ProjectSchedule record);

    ProjectSchedule selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ProjectSchedule record);

    int updateByPrimaryKey(ProjectSchedule record);

    List<ProjectSchedule> queryProjectList(ProjectSchedule record);

    /**
     * 项目管理 进度填报 更新
     *
     * @return list 集合
     */
    List<ProjectSchedule> queryProjectScheduleList();
    /**
            * 项目管理 进度填报 更新
     *
             * @param projectSchedule
     * @return int 大于0 成功 小于0 失败
     */
    int updateProjectSchedule(ProjectSchedule projectSchedule);

    List<ProjectSchedule> selectSaveReport(ProjectSchedule projectSchedule);

    int updateProjectScheduleList(ProjectSchedule projectSchedule);

    JSONObject queryColumns(String sql);

    List< ProjectSchedule > queryProjectInfo(String projectId);

    ProjectSchedule queryScheduleInfo(String projectId);
    List<ProjectSchedule> queryProjectInfoByQuarter(String projectId,String quarter);
}